<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-1.11.1(1).js"></script>
		<style>
			button{
				height: 70px;
				width: 120px;
				margin: 6px;
				cursor: pointer;
				background: #aaaa7f;
				border: none;
				margin-left: 0px;
			}
			#target{
				height: 400px;
				width: 600px;
				background: #ffff00;
				margin-top: -7px;
			}
			#contain1{
				text-align: center;
				font-size: 20px;
				line-height: 400px;
			}
			#contain2{
				text-align: center;
				font-size: 20px;
				line-height: 400px;
			}
			#contain3{
				text-align: center;
				font-size: 20px;
				line-height: 400px;
			}
		</style>
	</head>
	<body>
		<button id="btn1">tab01</button>
		<button id="btn2">tab02</button>
		<button id="btn3">tab03</button>
		<div id="target">
		<div id="contain1" style="display: none;">tab文字内容一</div>
		<div id="contain2" style="display: none;">tab文字内容二</div>	
		<div id="contain3" style="display: none;">tab文字内容三</div>
		</div>
		<script>
			$("#btn1").click(function(){
				$("#contain1").css( "display","block");
				$("#contain2").css( "display","none");
				$("#contain3").css( "display","none");
				$("#btn1").css("background-color","yellow");
				$("#btn2").css("background-color"," #aaaa7f");
				$("#btn3").css("background-color"," #aaaa7f");
			});
			$("#btn2").click(function(){
				//$("#contain2").css( "display","block");
				$("#contain1").css( "display","none");
				$("#contain2").css( "display","block");
				$("#contain3").css( "display","none");
			    $("#btn1").css("background-color","#aaaa7f");
				$("#btn2").css("background-color","yellow");	
				$("#btn3").css("background-color","#aaaa7f");
			});
			$("#btn3").click(function(){
				//$("#contain3").css( "display","block");
				$("#contain1").css( "display","none");
				$("#contain2").css( "display","none");
				$("#contain3").css( "display","block");
				$("#btn1").css("background-color","#aaaa7f");	
				$("#btn2").css("background-color","#aaaa7f");
				$("#btn3").css("background-color","yellow");
			});
		</script>
	</body>
</html>